<?php
class PermitConfig{  
    public static $permission = array(
        "can_view"=>1,
        "can_create"=>2,
        "can_edit"=>4,
        "can_del"=>8,
    );
    public static $permission_module = array(
        1=>array("label"=>"QL Danh mục","value"=>"category"),
        2=>array("label"=>"QL Game","value"=>"game"),
        3=>array("label"=>"QL Album ảnh","value"=>"album"),
        4=>array("label"=>"QL Video","value"=>"video"),
        5=>array("label"=>"QL Tin tức","value"=>"news"),
        6=>array("label"=>"QL Khách hàng","value"=>"member"),
        7=>array("label"=>"QL Box chat","value"=>"chat"),
        8=>array("label"=>"Thống kê doanh số","value"=>"report"),
        9=>array("label"=>"QL Tips","value"=>"tips"),       
        10=>array("label"=>"Ql Admin và phân quyền","value"=>"admin"),
        11=>array("label"=>"QL Version","value"=>"version"),
        12=>array("label"=>"QL Box Share","value"=>"share"),
        13=>array("label"=>"QL Banner","value"=>"advertise"),
        14=>array("label"=>"QL Box Quảng Cáo","value"=>"boxAdv"),
        15=>array("label"=>"QL tỷ lệ","value"=>"rate"),
        16=>array("label"=>"QL Blacklist","value"=>"blacklist"),
        17=>array("label"=>"QL SEO","value"=>"seo"),
        18=>array("label"=>"QL Partner","value"=>"partner"),
        19=>array("label"=>"QL Theme","value"=>"theme"),
        20=>array("label"=>"QL Email Marketing","value"=>"emailMarketing"),
        21=>array("label"=>"QL Xác nhận thanh toán","value"=>"paymentConfirm"),
        22=>array("label"=>"Đối soát tin nhắn theo Wapmaster","value"=>"paymentSmsWapmaster"),
        23=>array("label"=>"Đối soát tin nhắn theo Đối tác","value"=>"paymentSmsPartner"),
        24=>array("label"=>"Đối soát tin nhắn theo Sản phẩm","value"=>"paymentSmsProduct"),
        25=>array("label"=>"Đối soát thẻ cào theo Wapmaster","value"=>"paymentCardWapmaster"),
        26=>array("label"=>"Đối soát thẻ cào theo Đối tác","value"=>"paymentCardPartner"),
        27=>array("label"=>"Đối soát thẻ cào theo Sản phẩm","value"=>"paymentCardProduct"),
        28=>array("label"=>"Quản trị nhạc chờ","value"=>"ringBack"),
        29=>array("label"=>"Box quảng cáo tự động","value"=>"autoAdv"),
        30=>array("label"=>"Quản trị Sms Kute","value"=>"smsKute"),
        31=>array("label"=>"Quản trị App Sms Kute","value"=>"appSmsKute"),
        32=>array("label"=>"Quản trị icon app Sms Kute","value"=>"iconSmsKute"),
        33=>array("label"=>"Thống kê device","value"=>"statistic"),
        34=>array("label"=>"Đối soát thu chi","value"=>"paymentRevenue"),
        35=>array("label"=>"Chăm sóc khách hàng","value"=>"customerCare"),
        36=>array("label"=>"Quản trị mã nhúng","value"=>"embed"),
        37=>array("label"=>"Quản trị ứng dụng sms kute admin","value"=>"appSmsKuteNew"),
        38=>array("label"=>"Quản trị sms kute admin","value"=>"smsKuteNew"),
        39=>array("label"=>"Đối soát charging theo wapmaster","value"=>"paymentChargingWapmaster"),
        40=>array("label"=>"Biểu đồ doanh thu","value"=>"paymentTotal"),
        41=>array("label"=>"Quản trị tin nhắn","value"=>"msgUser"),
        42=>array("label"=>"Quản trị danh mục tử vi","value"=>"tuviCategory"),
        43=>array("label"=>"Quản trị tin tử vi","value"=>"tuvi"),
        44=>array("label"=>"Thêm mới xác nhận thanh toán","value"=>"addPaymentConfirm"),
    );
    
    public static $category = array(
        "can_view"=>array("index"),
        "can_create"=>array("create","ajaxSaveCategory"),
        "can_edit"=>array("ajaxQuickUpdate","edit","ajaxUpdate"),
        "can_del"=>array("ajaxDelete"),
    );
    public static $game = array(
         "can_view"=>array("index","gameFile","searchHandset","ajaxSearchHandset"),
        "can_create"=>array("create","ajaxSaveGame","ajaxSaveGameFile","createGameFile"),
        "can_edit"=>array("ajaxQuickUpdate","ajaxQuickUpdateFileGame","edit","ajaxUpdateGame","editGameFile","ajaxUpdateGameFile"),
        "can_del"=>array("ajaxDelete","ajaxDeleteGameFile"),
    );
    public static $album = array(
        "can_view"=>array("index","image"),
        "can_create"=>array("create","ajaxSaveAlbum"),
        "can_edit"=>array("ajaxQuickUpdate","edit","ajaxUpdateAlbum"),
        "can_del"=>array("ajaxDelete","ajaxDeleteImage"),
    );
    public static $video = array(
        "can_view"=>array("index","show"),
        "can_create"=>array("create","ajaxSaveVideo"),
        "can_edit"=>array("ajaxQuickUpdate","edit","ajaxUpdateVideo"),
        "can_del"=>array("ajaxDelete"),
    );
    public static $news = array(
        "can_view"=>array("index"),
        "can_create"=>array("create","ajaxSaveNews"),
        "can_edit"=>array("ajaxQuickUpdate","edit","ajaxUpdateNews"),
        "can_del"=>array("ajaxDelete"),
    );
    public static $member = array(
        "can_view"=>array("index"),
        "can_create"=>array(),
        "can_edit"=>array("ajaxQuickUpdate"),
        "can_del"=>array("ajaxDelete"),
    );
    public static $chat = array(
        "can_view"=>array("index"),
        "can_create"=>array(),
        "can_edit"=>array(),
        "can_del"=>array("ajaxDelete"),
    );
    public static $report = array(
        "can_view"=>array("userSms", "userSmsDetail", "userCard", "userCardDetail", "download", "exportSms", "exportCard", "export"),
        "can_create"=>array(),
        "can_edit"=>array(),
        "can_del"=>array(),
    );
    public static $tips = array(
        "can_view"=>array("index"),
        "can_create"=>array("create","ajaxSaveTips"),
        "can_edit"=>array("edit","ajaxUpdateTips","ajaxQuickUpdate"),
        "can_del"=>array("ajaxDelete"),
    );
    public static $version = array(
        "can_view"=>array("index"),
        "can_create"=>array("create","ajaxSaveVersion"),
        "can_edit"=>array(),
        "can_del"=>array("ajaxDelete"),
    );
    public static $admin = array(
        "can_view"=>array("index","permit"),
        "can_create"=>array("ajaxSaveAdmin","ajaxSavePermit"),
        "can_edit"=>array("edit","ajaxResetPass","ajaxSavePermit","ajaxQuickUpdate","ajaxChangePass"),
        "can_del"=>array("ajaxDelete","ajaxSavePermit","ajaxDeletePermit"),
    );
    public static $share = array(
        "can_view"=>array("index"),
        "can_create"=>array(),
        "can_edit"=>array(),
        "can_del"=>array("ajaxDelete"),
    );
    public static $advertise = array(
        "can_view"=>array("index"),
        "can_create"=>array("create","ajaxSaveBanner"),
        "can_edit"=>array("ajaxQuickUpdate","edit","ajaxUpdateBanner"),
        "can_del"=>array("ajaxDelete"),
    );
    public static $boxAdv = array(
        "can_view"=>array("index"),
        "can_create"=>array("create","ajaxSaveBanner"),
        "can_edit"=>array("ajaxQuickUpdate","edit","ajaxUpdateBanner"),
        "can_del"=>array("ajaxDelete"),
    );
    public static $rate = array(
        "can_view"=>array("index", "sms", "card", "service"),
        "can_create"=>array("",""),
        "can_edit"=>array("","",""),
        "can_del"=>array(""),
    );
    public static $blacklist = array(
        "can_view"=>array("index"),
        "can_create"=>array("create","ajaxSaveBlacklist"),
        "can_edit"=>array(),
        "can_del"=>array("ajaxDelete"),
    );
    public static $seo = array(
        "can_view"=>array("category","detail"),
        "can_create"=>array(),
        "can_edit"=>array("ajaxSaveSeoCategory","ajaxSaveSeoDetail"),
        "can_del"=>array(),
    );
    public static $partner = array(
        "can_view"=>array("index"),
        "can_create"=>array("ajaxSavePartner"),
        "can_edit"=>array("ajaxQuickUpdate"),
        "can_del"=>array("ajaxDelete"),
    );
    public static $theme = array(
        "can_view"=>array("index"),
        "can_create"=>array("ajaxSaveTheme"),                  
        "can_edit"=>array("ajaxQuickUpdate"),
        "can_del"=>array("ajaxDelete"),
    );
    public static $emailMarketing = array(
        "can_view"=>array("index"),
        "can_create"=>array("ajaxSaveLinkFooter"),                  
        "can_edit"=>array("ajaxSaveContent","ajaxQuickUpdate"),
        "can_del"=>array("ajaxDelete"),
    );
    public static $paymentConfirm = array(
        "can_view"=>array("index","detail","export","download"),
        "can_create"=>array(),                  
        "can_edit"=>array(),
        "can_del"=>array(),
    );
    
    public static $paymentSmsWapmaster = array(
        "can_view"=>array("index", "detail"),
        "can_create"=>array(),                  
        "can_edit"=>array(),
        "can_del"=>array(),
    );
    
    public static $paymentSmsPartner = array(
        "can_view"=>array("index", "detail", "export"),
        "can_create"=>array(),                  
        "can_edit"=>array(),
        "can_del"=>array(),
    );
    
    public static $paymentSmsProduct = array(
        "can_view"=>array("index", "detail"),
        "can_create"=>array(),                  
        "can_edit"=>array(),
        "can_del"=>array(),
    );
    
    public static $paymentCardWapmaster = array(
        "can_view"=>array("index", "detail"),
        "can_create"=>array(),                  
        "can_edit"=>array(),
        "can_del"=>array(),
    );
    
    public static $paymentCardPartner = array(
        "can_view"=>array("index", "detail", "export"),
        "can_create"=>array(),                  
        "can_edit"=>array(),
        "can_del"=>array(),
    );
    
    public static $paymentCardProduct = array(
        "can_view"=>array("index", "detail"),
        "can_create"=>array(),                  
        "can_edit"=>array(),
        "can_del"=>array(),
    );
    
    public static $ringBack = array(
        "can_view"=>array("index", "singer", "category"),
        "can_create"=>array("create", "addIcon", "ajaxSaveSinger", "ajaxSaveRing", "ajaxSaveCategory"),                  
        "can_edit"=>array("edit", "ajaxQuickUpate", "ajaxUpdateSingerRing", "ajaxSingerUpdate", "ajaxEditSinger", "editSinger", "ajaxUpdateRing", "ajaxCategoryUpdate", "ajaxUpdateCategoryRing", "editCategory"),
        "can_del"=>array("ajaxDelete", "ajaxSingerDelete", "ajaxCategoryDelete"),
    );
    
    public static $autoAdv = array(
        "can_view"=>array("index"),
        "can_create"=>array("create","ajaxSaveBanner"),
        "can_edit"=>array("ajaxQuickUpdate","edit","ajaxUpdateBanner"),
        "can_del"=>array("ajaxDelete"),
    );
    
    public static $smsKute = array(
        "can_view"=>array("index"),
        "can_create"=>array("saveRow"),
        "can_edit"=>array(),
        "can_del"=>array("deleteRow"),
    );
    
    public static $statistic = array(
        "can_view"=>array("index"),
        "can_create"=>array(),
        "can_edit"=>array(),
        "can_del"=>array(),
    );
    
    public static $appSmsKute = array(
        "can_view"=>array("index", "sms"),
        "can_create"=>array(),
        "can_edit"=>array(),
        "can_del"=>array("ajaxDelete"),
    );
    
    public static $iconSmsKute = array(
        "can_view"=>array("index", "category"),
        "can_create"=>array("add", "addCategory"),
        "can_edit"=>array("edit", "editCategory", "ajaxQuickUpdate", "ajaxQuickUpdateCategory"),
        "can_del"=>array("ajaxDelete", "ajaxDeleteCategory"),
    );    
    public static $paymentRevenue = array(
        "can_view"=>array("index"),
        "can_create"=>array(),
        "can_edit"=>array(),
        "can_del"=>array(),
    );
    public static $customerCare = array(
        "can_view"=>array("index","logsms","logcard","ajaxReply"),
        "can_create"=>array(),
        "can_edit"=>array(),
        "can_del"=>array(),
    );
    public static $embed = array(
        "can_view"=>array("index"),
        "can_create"=>array("create","ajaxSaveEmbed"),
        "can_edit"=>array("ajaxQuickUpdate","edit","ajaxUpdateEmbed"),
        "can_del"=>array("ajaxDelete"),
    );
    public static $appSmsKuteNew = array(
        "can_view"=>array("index"),
        "can_create"=>array("add"),
        "can_edit"=>array("ajaxQuickUpdate","edit"),
        "can_del"=>array("ajaxDelete"),
    );
    public static $smsKuteNew = array(
        "can_view"=>array("index"),
        "can_create"=>array("add"),
        "can_edit"=>array("ajaxQuickUpdate","edit"),
        "can_del"=>array("ajaxDelete"),
    );
    public static $paymentChargingWapmaster = array(
        "can_view"=>array("index", "detail"),
        "can_create"=>array(),                  
        "can_edit"=>array(),
        "can_del"=>array(),
    );  
    public static $paymentTotal = array(
        "can_view"=>array("index"),
        "can_create"=>array(),                  
        "can_edit"=>array(),
        "can_del"=>array(),
    ); 
    public static $msgUser = array(
        "can_view"=>array("index"),
        "can_create"=>array("create","ajaxSaveMsg"),                  
        "can_edit"=>array("ajaxQuickUpdate","edit","ajaxEditMsg"),
        "can_del"=>array("ajaxDelete"),
    );
    
    public static $tuviCategory = array(
        "can_view"=>array("index"),
        "can_create"=>array("create","ajaxSaveCategory"),
        "can_edit"=>array("ajaxQuickUpdate","edit","ajaxUpdateCat"),
        "can_del"=>array("ajaxDelete"),
    );
    public static $tuvi = array(
        "can_view"=>array("index"),
        "can_create"=>array("create","ajaxSaveTuvi"),
        "can_edit"=>array("ajaxQuickUpdate","edit","ajaxUpdateTuvi"),
        "can_del"=>array("ajaxDelete"),
    ); 
    public static $addPaymentConfirm = array(
        "can_view"=>array("index"),
        "can_create"=>array(),
        "can_edit"=>array(),
        "can_del"=>array(),
    );
}
    
